package com.dragon.modules.yuegou.model.product;

import com.dragon.modules.yuegou.entity.product.ActivityEntity;
import com.dragon.modules.yuegou.enums.product.ActivityActivityStatus;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 商品活动模型类
 * 
 * @author pbuilder generated
 * @date 2023-09-06 20:20:02
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class Activity extends ActivityEntity {

	@ApiModelProperty("创建人名称")
	private String createdName;

	@ApiModelProperty("活动状态")
	private String activityStatusName;

	/**
	 * 构造一个空商品活动模型对象
	 */
	public Activity(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个商品活动模型对象
	 * 
	 * @param entity 实体对象
	 */
	public Activity(ActivityEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个商品活动模型对象
	 * 
	 * @param other 其它对象
	 */
	public Activity(Activity other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public Activity id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置商圈id
	 * 
	 * @param busdId 商圈id
	 * @return 当前对象
	 */
    public Activity busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public String getActivityNo() {
    	return activityNo;
    }

    /**
	 * 设置活动编码
	 * 
	 * @param activityNo 活动编码
	 * @return 当前对象
	 */
    public Activity activityNo(String activityNo) {
    	this.activityNo = activityNo;
    	return this;
    }

	@Override
	public String getActivityName() {
    	return activityName;
    }

    /**
	 * 设置活动名称
	 * 
	 * @param activityName 活动名称
	 * @return 当前对象
	 */
    public Activity activityName(String activityName) {
    	this.activityName = activityName;
    	return this;
    }

	@Override
	public ActivityActivityStatus getActivityStatus() {
    	return activityStatus;
    }

    /**
	 * 设置[枚举]活动状态：0-下架-OFFLINE、1-上架-ONLINE、9-草稿-DRAFT
	 * 
	 * @param activityStatus [枚举]活动状态：0-下架-OFFLINE、1-上架-ONLINE、9-草稿-DRAFT
	 * @return 当前对象
	 */
    public Activity activityStatus(ActivityActivityStatus activityStatus) {
    	this.activityStatus = activityStatus;
    	return this;
    }

	@Override
	public String getActivityMasterImg() {
    	return activityMasterImg;
    }

    /**
	 * 设置
	 * 
	 * @param activityMasterImg 
	 * @return 当前对象
	 */
    public Activity activityMasterImg(String activityMasterImg) {
    	this.activityMasterImg = activityMasterImg;
    	return this;
    }

	@Override
	public LocalDate getActivityBeginDate() {
    	return activityBeginDate;
    }

    /**
	 * 设置活动结束日期
	 * 
	 * @param activityBeginDate 活动结束日期
	 * @return 当前对象
	 */
    public Activity activityBeginDate(LocalDate activityBeginDate) {
    	this.activityBeginDate = activityBeginDate;
    	return this;
    }

	@Override
	public LocalDate getActivityEntDate() {
    	return activityEntDate;
    }

    /**
	 * 设置
	 * 
	 * @param activityEntDate 
	 * @return 当前对象
	 */
    public Activity activityEntDate(LocalDate activityEntDate) {
    	this.activityEntDate = activityEntDate;
    	return this;
    }

	@Override
	public String getActivityBeginTime() {
    	return activityBeginTime;
    }

    /**
	 * 设置活动开始时间 时分秒
	 * 
	 * @param activityBeginTime 活动开始时间 时分秒
	 * @return 当前对象
	 */
    public Activity activityBeginTime(String activityBeginTime) {
    	this.activityBeginTime = activityBeginTime;
    	return this;
    }

	@Override
	public String getActivityEndTime() {
    	return activityEndTime;
    }

    /**
	 * 设置活动结束日期 时分秒
	 * 
	 * @param activityEndTime 活动结束日期 时分秒
	 * @return 当前对象
	 */
    public Activity activityEndTime(String activityEndTime) {
    	this.activityEndTime = activityEndTime;
    	return this;
    }

	@Override
	public LocalDateTime getActivityShowBeginTime() {
    	return activityShowBeginTime;
    }

    /**
	 * 设置活动展示时间
	 * 
	 * @param activityShowBeginTime 活动展示时间
	 * @return 当前对象
	 */
    public Activity activityShowBeginTime(LocalDateTime activityShowBeginTime) {
    	this.activityShowBeginTime = activityShowBeginTime;
    	return this;
    }

	@Override
	public LocalDateTime getActivityShowEndTime() {
    	return activityShowEndTime;
    }

    /**
	 * 设置活动展示结束时间
	 * 
	 * @param activityShowEndTime 活动展示结束时间
	 * @return 当前对象
	 */
    public Activity activityShowEndTime(LocalDateTime activityShowEndTime) {
    	this.activityShowEndTime = activityShowEndTime;
    	return this;
    }

	@Override
	public String getActivityAddress() {
    	return activityAddress;
    }

    /**
	 * 设置活动地址
	 * 
	 * @param activityAddress 活动地址
	 * @return 当前对象
	 */
    public Activity activityAddress(String activityAddress) {
    	this.activityAddress = activityAddress;
    	return this;
    }

	@Override
	public String getActivityPrice() {
    	return activityPrice;
    }

    /**
	 * 设置活动价格，这里存文本直接显示，不做出来
	 * 
	 * @param activityPrice 活动价格，这里存文本直接显示，不做出来
	 * @return 当前对象
	 */
    public Activity activityPrice(String activityPrice) {
    	this.activityPrice = activityPrice;
    	return this;
    }

	public String getCreatedName() {
		return createdName;
	}

	public void setCreatedName(String createdName) {
		this.createdName = createdName;
	}

	public String getActivityStatusName() {
		return activityStatusName;
	}

	public void setActivityStatusName(String activityStatusName) {
		this.activityStatusName = activityStatusName;
	}

	/**
	 * 设置创建人ID
	 * 
	 * @param createdBy 创建人ID
	 * @return 当前对象
	 */
    public Activity createdBy(String createdBy) {
    	this.createdBy = createdBy;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置创建时间
	 * 
	 * @param createdTime 创建时间
	 * @return 当前对象
	 */
    public Activity createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public String getModifiedBy() {
    	return modifiedBy;
    }

    /**
	 * 设置更新人ID
	 * 
	 * @param modifiedBy 更新人ID
	 * @return 当前对象
	 */
    public Activity modifiedBy(String modifiedBy) {
    	this.modifiedBy = modifiedBy;
    	return this;
    }

	@Override
	public LocalDateTime getModifiedTime() {
    	return modifiedTime;
    }

    /**
	 * 设置更新时间
	 * 
	 * @param modifiedTime 更新时间
	 * @return 当前对象
	 */
    public Activity modifiedTime(LocalDateTime modifiedTime) {
    	this.modifiedTime = modifiedTime;
    	return this;
    }

	@Override
	public Boolean getDel() {
    	return del;
    }

    /**
	 * 设置逻辑删除，1表示已删除,0表示未删除
	 * 
	 * @param del 逻辑删除，1表示已删除,0表示未删除
	 * @return 当前对象
	 */
    public Activity del(Boolean del) {
    	this.del = del;
    	return this;
    }

	@Override
	public String getDelBy() {
    	return delBy;
    }

    /**
	 * 设置删除人ID
	 * 
	 * @param delBy 删除人ID
	 * @return 当前对象
	 */
    public Activity delBy(String delBy) {
    	this.delBy = delBy;
    	return this;
    }

	@Override
	public LocalDateTime getDelTime() {
    	return delTime;
    }

    /**
	 * 设置删除时间
	 * 
	 * @param delTime 删除时间
	 * @return 当前对象
	 */
    public Activity delTime(LocalDateTime delTime) {
    	this.delTime = delTime;
    	return this;
    }
}
